/**
 * AirportDataSource.java
 * Jan 9, 2010
 */
package com.dlplay.flightinfo.source;

import com.dlplay.flightinfo.data.Flight;

/**
 * @author zhao yu
 *
 */
public interface FlightDataSource {
	
	/**
	 * @param flightNum
	 * @return if failed, return null
	 * Description: get the flight data by flight number
	 */
	public abstract Flight getFlightByNum(String flightNum);
	
	/**
	 * @param flightNum
	 * @return if failed, return null
	 * Description: get the flight data by flight number
	 */
	public abstract Flight getFlightByLocation(String from, String to);

}
